﻿using System;
using System.Net;
using RpcHelper.Validate;

namespace Wedonek.RpcStore.Gateway.Model
{
    public class SetIpBlackParam
    {
        /// <summary>
        /// 起始IP
        /// </summary>
        [NullValidate("rpc.ipBlack.ip.null")]
        [FormatValidate("rpc.ipBlack.ip.error", ValidateFormat.IP)]
        public string IpAddress
        {
            get;
            set;
        }
        /// <summary>
        /// 截止IP
        /// </summary>
        [FormatValidate("rpc.ipBlack.end.ip.error", ValidateFormat.IP)]
        public string EndIpAddress { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        [TimeValidate("rpc.store.ipBlack.overTime.error", 0)]
        public DateTime? OverTime { get; set; }
    }
}
